﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WPExtensionsDemo
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/UpdateTextBoxOnChange.xaml", UriKind.Relative));
        }

        private void Button2_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/SelectableTextBox.xaml", UriKind.Relative));
        }

        private void ButtonFocusOnLoad_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/FocusOnLoadPage.xaml", UriKind.Relative));
        }

        private void DispatcherTimerFocus_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/DispatcherTimerFocus.xaml", UriKind.Relative));
        }

        private void AdvancedApplicationBar_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/AdvancedApplicationBarDemo.xaml", UriKind.Relative));
        }

        private void PanoramaPivotAdvancedApplicationBar_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/AppBarInPanorama.xaml", UriKind.Relative));
        }

        private void ButtonOrientationChangedAnimation_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/PageChangeOrientationAnimation.xaml", UriKind.Relative));
            
        }
    }
}